/*
 * @Title Log4j.java
 * @Description
 * @Copyright Copyright(c) 2018
 * @Company com.lizhen
 * @author lizhen
 * @version 0.0.1
 */
package com.lizhen.core.function.log4j;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

/**
 * @author lizhen
 */
public class Log4j {

    private static final String LOG4J_PATH = "1.8/api/main/resource/com/lizhen/core/function/log4j/Log4j/log4j.properties";
    static Logger logger = Logger.getLogger(Log4j.class);

    /**
     * @author lizhen
     */
    public Log4j() {
    }

    /**
     * @author lizhen
     */
    public static void main(String[] args) {
        PropertyConfigurator.configure(LOG4J_PATH);
        logger.debug("Hello this is an debug message");
        logger.info("Hello this is an info message");

        System.out.println("The end!");
    }

}
